function t(t) {
    if (Array.isArray(t)) {
        for (var a = 0, e = Array(t.length); a < t.length; a++) e[a] = t[a];
        return e;
    }
    return Array.from(t);
}

var a = function (t) {
        return t && t.__esModule ? t : {
            default: t
        };
    },
    e = getApp();

Page({
    data: {
        typeList: [],
        type_id: "",
        loadPage: 1,
        lastPage: 0,
        list: [],
        inLoad: !0,
        my_position: 0,
        contentext:''
    },
    onLoad: function (t) {
        var i = this;
        i.getList()
    },
    getList: function () {

        var i = this;
        //console.log(e.config.baseInfo.curpytext)

        wx.showLoading({
            title: '加载中...',
        })

        wx.request({
            url: e.domain + "ssm/appWebServ/feet/listex",
            data: {
                appid: e.appid,
                openid: e.openid,
                currentPageNbr: i.data.loadPage,
                pageSize: 10
            },
            header: {
                'content-type': 'application/json' // 默认值
            },
            success(res) {

                console.log(res)
                i.setData({
                    inLoad: !1,
                    list: [].concat(i.data.list, res.data.list),
                    loadPage: i.data.loadPage + 1,
                    my_position: res.data.rank,
                    lastPage: i.data.loadPage == res.data.page.totalPages ? 1 : 0,
                    contentext:e.config.baseInfo.curpytext
                });
            },
            complete(r) {
                wx.hideLoading()
            }
        })

    }
});